$(document).ready(function () {
    cztdsy_form.onload();
})

var cztdsy_form = (function () {

    var init = function () {
    	layui.use('form', function(){
			  var form = layui.form
		});
		$("#wep_cztdsy_form input[type='text']").focus(function () {
				$(this).css('border','1px solid #1e9fff')
	       }).blur(function(){
	       		$(this).css('border','1px solid #e6e6e6')
	       });
	       $('.wep_cztdsy_back').hover(function(){
	       		$(this).css('color','#1e9fff');
	       		$(this).find('img').attr('src','img/backImg1.png')
	       },function(){
			    $(this).css("color","#666");
			    $(this).find('img').attr('src','img/backImg.png')
			})
    }

    return {
        onload : function () {
            init();
        },
        saveForm:function(){
        	layui.use('layer', function(){
				var layer = layui.layer;
				layer.confirm('保存成功，是否维护应税明细信息？', {
				btn: ['确定', '取消'] //按钮
				}, function() {
					window.location.href='cztdysxx.html';
					
				}, function() {
					window.location.href='cztdsy.html';
				})
			}); 
		}

    }
})();
